﻿@model ProgressTracker.WebUI.Models.Account.ChangePasswordModel

@{
    ViewBag.Title = "ChangePassword";
}

<h2>Change Password</h2>

@using(Html.BeginForm("ChangePassword", "Account", FormMethod.Post, new { @class="form-horizontal" }))
{
    @Html.HiddenFor(x => x.UserEmail);
    <div class="form-group">
        <div class="col-xs-2">Old Password: </div>
        <div class="col-xs-4">@Html.TextBoxFor(x => x.OldPassword, new { type = "password", @class = "form-control" })</div>
    </div>
    <div class="form-group">
        <div class="col-xs-2">New Password: </div>
        <div class="col-xs-4">@Html.TextBoxFor(x => x.NewPassword, new { type = "password", @class = "form-control" })</div>
    </div>
    <div class="form-group">
        <div class="col-xs-2">Confirm New Password: </div>
        <div class="col-xs-4">@Html.TextBoxFor(x => x.ConfirmPassword, new { type = "password", @class = "form-control" })</div>
    </div>
    
    <button type="submit" class="btn btn-primary">Change Password</button>
}